<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        // function Demo(uname,age){
        //     console.log(this);
               console.log(uname, age);
        // }

        // // call bind apply
             let obj = {}
        // let obj = {obj "张三"，21}   //改变this指向，并立即执行

        // Demo.call(obj,"张三"，21)   //改变this指向，并立即执行
        // f()    //执行新的函数

        Demo.apply(obj,["张三,21"])    //改变this指向，病立即执行，参数放到数组里
   </script>
</head>

<body>

</body>

</html>